package FileMethodDemo2;

import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        // createNewFile()
        File f1 = new File("D:\\vscode\\JavaScript\\c.txt");
//        boolean b = f1.createNewFile();
//        System.out.println(b);

        File f2 = new File("D:\\vscode\\JavaScript\\e");
//        boolean b = f2.mkdir();
//        System.out.println(b);

        File f3 = new File("D:\\vscode\\JavaScript\\e\\e");
//        boolean b = f3.mkdirs();
//        System.out.println(b);

        boolean b = f3.delete();
        System.out.println(b);
    }
}
